<?php

header("Content-type:text/html;charset=UTF-8");
require_once'db_conn.php';
$conn;

$sql = "select * from aaa";
$result = $conn->query($sql);

echo"<pre>";
//print_r($result->fetch_assoc());
$rows = $result->fetch_all(MYSQLI_ASSOC);
print_r($rows);
foreach($rows as $value){
    echo "<br/>";
    echo $value ["username"]." 说: ".$value["content"];
}

